package cn.com.thingo.hyintelligent.base.contract;

import cn.com.thingo.hyintelligent.base.BasePresenter;
import cn.com.thingo.hyintelligent.base.BaseView;
import cn.com.thingo.hyintelligent.model.bean.CommonBean;
import cn.com.thingo.hyintelligent.model.bean.ModifyHeadBean;
import cn.com.thingo.hyintelligent.model.bean.UserBean;
import okhttp3.MultipartBody;
import okhttp3.RequestBody;

public interface PersonalContract {
    interface View extends BaseView {
        void viewUser(UserBean userBean);

        void viewModifyHead(ModifyHeadBean modifyHeadBean);

        void viewLogout(CommonBean commonBean);

    }

    interface Presenter extends BasePresenter<PersonalContract.View> {
        void getUser(String token);

        void modifyHead(RequestBody token, MultipartBody.Part headPic);

        void logout(String token);

    }
}
